import tensorflow as tf

# Just disables the warning, doesn't enable AVX/FMA
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'


# tensor board 演示
with tf.Session() as sess:
    a = tf.constant(3)
    b = tf.constant(4)
    total = a+b
    sess.run(tf.global_variables_initializer())
    writer = tf.summary.FileWriter("./AIlessonWeek3Practice")
    writer.add_graph(sess.graph)
    writer.close()

## 命令行 tensorboard --logdir=/xx/xxx 调用，浏览器地址：Localhost:6006

total

